package xy.come.juhenews.Adapter;

import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import xy.come.juhenews.Bean.GirlListBean;
import xy.come.juhenews.R;

/**
 * Created by Xia_焱 on 2018/7/31.
 * e-mail：XiahaotianV@163.com
 */

public class GirlListAdapter extends BaseQuickAdapter<GirlListBean.DataBean, BaseViewHolder> {
    public GirlListAdapter(int layoutResId, @Nullable List<GirlListBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper,GirlListBean.DataBean item) {

        ImageView image_view = helper.getView(R.id.iv_age);
         Glide.with(mContext).load(item.getUrl()).into(image_view);
    }
}
